﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using MrPP.Myth;
using GDGeek;
using MrPP.Common;
using MrPP.Tracking;
using MrPP.UX;
using System;

namespace MrPP.SerriedCabinet
{
    public class SerriedCabinetPost : GDGeek.Singleton<SerriedCabinetPost>
    {
        public void doBoxMenu(int id)//目录上选择书
        {
            MrPP.MVC.PostToServer.Instance.post("box_menu", id);
        }
        public void doBoxMenu(IntId id)//目录上选择书
        {
            doBoxMenu(id.id);
        }
        public void doBoxBox(int id)//选择盒子
        {
            if (BoxRoot.IsInitialized && BoxRoot.Instance.inside(Camera.main.transform.position)) {
                return;
            }
            MrPP.MVC.PostToServer.Instance.post("box_box", id);
        }
        public void doBoxBox(IntId id)//选择盒子
        {

            doBoxBox(id.id);
        }

        public void doLeftPage(int go)//左翻页
        {
            MrPP.MVC.PostToServer.Instance.post("box_left_page", go);
        }

        public void doRightPage(int go)//右翻页
        {
            MrPP.MVC.PostToServer.Instance.post("box_right_page", go);
        }
        //CheckReceiver
        public void doLeftCheck() {

            MrPP.MVC.PostToServer.Instance.post("box_left_check");
        }
        public void doRightCheck() {

            MrPP.MVC.PostToServer.Instance.post("box_right_check");
        }

    }
}